package cc.tuhaolicai.mt.user.mobile.model;

import com.google.common.base.MoreObjects;
import org.asyou.mongo.annotation.Collection;

/**
 * @author chenli
 * @create 2017-10-12
 */
@Collection(name = "chain1")
public class Chain1Model {
    private Long id;

    private String startName;

    private String endName;

    private String remark;

    public Long getId() {
        return id;
    }

    public Chain1Model setId(Long id) {
        this.id = id;
        return this;
    }

    public String getStartName() {
        return startName;
    }

    public Chain1Model setStartName(String startName) {
        this.startName = startName;
        return this;
    }

    public String getEndName() {
        return endName;
    }

    public Chain1Model setEndName(String endName) {
        this.endName = endName;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public Chain1Model setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("id", id)
                .add("startName", startName)
                .add("endName", endName)
                .add("remark", remark)
                .toString();
    }
}